<?php

namespace App\Admin\Widgets;

class InfoBox extends \Encore\Admin\Widgets\InfoBox
{

    /**
     * InfoBox constructor.
     *
     * @param string $name
     * @param string $icon
     * @param string $color
     * @param string $link
     * @param string $info
     */
    public function __construct($name, $icon, $color, $link, $info, $html = null)
    {
        $this->data = [
            'name' => $name,
            'icon' => $icon,
            'link' => $link,
            'info' => $info,
            'html' => $html,
        ];

        $this->class("small-box bg-$color");
    }


}
